// ie polyfill
import '@babel/polyfill'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
import echarts from 'echarts'
import VueAMap from 'vue-amap'

// mock 去除模拟数据
// import './mock'
// 自己封装的图标组件 MyIcon
import MyIcon from '@/components/tools/MyIcon.vue'

import bootstrap from './core/bootstrap'
import './core/use'
import './permission' // permission control
import './utils/filter' // global filter

import './assets/css/basics.css'

Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: 'e5ba473a79870fb59b2ffd7e65f478db',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  uiVersion: '1.0', // ui库版本，不配置不加载,
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
})

Vue.component('my-icon', MyIcon)

// mount axios Vue.$http and this.$http
Vue.use(VueAxios)

new Vue({
  router,
  store,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
